import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/bcanvas",
      name: "bcanvas",
      component: () => import("@/views/index/BusinessCanvas/BCanvas.vue"),
    },
    {
      path: "/theGoal",
      name: "theGoal",
      component: () => import("@/views/index/smart/theGoal.vue"),
    },
    {
      path: "/home",
      name: "home",
      component: () => import("@/views/main/index.vue"),
    },
    {
      path: "/sumprice",
      name: "sumprice",
      component: () => import("@/views/practice/sumPrice.vue"),
    },
    {
      path: "/money",
      name: "money",
      component: () => import("@/views/practice/sumMoney.vue"),
    },
    {
      path: "/jiagou",
      name: "jiagou",
      component: () => import("@/views/learn/jiagou.vue"),
    },
    {
      path: "/regiset",
      name: "regiset",
      component: () => import("@/views/login/registe.vue"),
    },
    {
      path: "/learn",
      name: "learn",
      component: () => import("@/views/learn/main.vue"),
    },
    {
      path: "/askDeeoseek",
      name: "askDeeoseek",
      component: () => import("@/views/index/deepseek/chart.vue"),
    },
    {
      path: "/",
      name: "index",
      component: () => import("@/views/index/main.vue"),
    },
    {
      path: "/device",
      name: "device",
      component: () => import("@/views/xiaoche/device.vue"),
    },
    {
      path: "/device/addPoint",
      name: "addPoint",
      component: () => import("@/views/xiaoche/device/addPoint.vue"),
    },
    {
      path: "/device/addEdge",
      name: "addEdge",
      component: () => import("@/views/xiaoche/device/addEdge.vue"),
    },
    {
      path: "/dispather/kaishidiao",
      name: "kaishidiao",
      component: () => import("@/views/xiaoche/dispather/kong0304.vue"),
    },
    {
      path: "/tools",
      name: "tools",
      component: () => import("@/views/gongju/main.vue"),
    },
    {
      path: "/tools/subpage1",
      name: "tools-genPass",
      component: () => import("@/views/gongju/rundPassword/genPass.vue"),
    },
    {
      path: "/tools/subpage2",
      name: "tools-done",
      component: () => import("@/views/gongju/dothings/doThings.vue"),
    },
      {
      path: "/tools/uploadfile",
      name: "tools-uploadfile",
      component: () => import("@/views/gongju/uploadfile/upload.vue"),
    },
    {
      path: "/tools/startup",
      name: "tools-startup",
      component: () => import("@/views/gongju/startup/startup.vue"),
    }
  ],
});
export default router;
